#pragma once

#include "WordCache.h"

#include <vector>
#include <iostream>

class MemoryCache : public WordCache{
public:
	int AddWord(const std::string& word) override;
	void Report() override;
	std::vector<std::string> GetWords() override;
	void Clear() override {
		//std::cout<<"MemoryCache::Clear()"<<std::endl;
		m_words.clear();
		//m_words = {};
		//std::cout<<"size:"<<m_words.size()<<std::endl;
	}

private:
	bool IsValidWord(const std::string& word);
	std::vector<std::string> m_words;
};